package tictactoe;

import junit.framework.Assert;
import org.junit.Test;

/**
 * Created by IntelliJ IDEA.
 * User: Double
 * Date: 16.01.12
 * Time: 4:06
 * To change this template use File | Settings | File Templates.
 */
public class GameTest
{
	Game game = new Game(new Client(),new Client());
	@Test (expected=java.lang.NullPointerException.class) public void testCheckClients() throws Exception
	{
		Assert.assertFalse(game.checkClients());

	}

	@Test
	public void testMakeStep() throws Exception
	{
		game.fclient.setTurnFlag(true);
		Assert.assertTrue(game.makeStep(0,game.fclient.getFigure()));

	}

	@Test
	public void testIsVictory() throws Exception
	{
	   game.setField();
		Assert.assertTrue(game.isVictory());
	}
}
